/*
* OctLabel.h
*
* Copyright(C) 2009, Лущик Павел aka nanoo
*
* This code is lisenced under the GPL version 2. For details see 
* LISENCE.txt
*/

#ifndef OCTLABEL_H
#define OCTLABEL_H
#include<QLabel>
#include<QWheelEvent>
#include<QFrame>

class OctLabel: public QLabel
{
 	Q_OBJECT
	public:
		OctLabel(QWidget *parent=0);
		int value();
	protected:
		void wheelEvent(QWheelEvent*);
	private:
		int state;
	signals:
		void up(void);
		void down(void);
		void wheel_is_running(void);
	public slots:
		void go_up(void);
		void go_down(void);
		void setValue(int);
};
#endif
